package com.loan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.loan.entity.Product;
import com.loan.utils.ResponseResult;

import java.util.List;

/**
* @author z
* @description 针对表【product】的数据库操作Service
* @createDate 2023-04-21 14:51:41
*/
public interface ProductService extends IService<Product> {
    /**
     * 返回所有产品信息
     * @return
     */
    List<Product> findAllProduct();

    /**
     * 根据id查询产品信息
     * @param pid
     * @return
     */
    Product findProductById(String pid);

    void insertProduct(Product product);

    ResponseResult<Product> deleteProduct(String pid);
}
